package com.fcscs.cservice.gwt.client;

import com.fcscs.core.common.SearchResultsContainer;
import com.fcscs.cservice.domain.model.GuestProfileFindView;
import com.fcscs.cservice.domain.model.GuestProfileView;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

@RemoteServiceRelativePath("../gwt/guestProfile")
public interface GuestProfileService extends RemoteService {
	/**
	 * search guest profile
	 * @param firstName
	 * @param lastName
	 * @param roomNo
	 * @param phoneNo
	 * @param mobileNo
	 * @param memberNo
	 * @param start
	 * @param resultCnt
	 * @return
	 */
	public SearchResultsContainer<GuestProfileFindView> findGuestProfile(String firstName, String lastName, String roomNo, String phoneNo,
			String mobileNo, String memberNo, int start, int resultCnt);
	
	/**
	 * update guest profile
	 * @param gpView guest profile to be updated
	 * @return
	 */
	GuestProfileView updateGuestProfileView(GuestProfileView gpView);

	GuestProfileView getGuestProfileView(long id);
}
